package com.zy.mall.service;

import com.zy.mall.model.Admin;
import com.zy.mall.model.bo.AdminChangeBo;
import com.zy.mall.model.bo.AdminLoginBo;
import com.zy.mall.model.bo.AdminSearchBo;

import java.util.List;

public interface AdminService {
    Admin login(AdminLoginBo loginBo);

    List<Admin> allAdmins();

    List<Admin> getSearchAdmins(AdminSearchBo searchBo);

    void addAdmin(Admin admin);


    boolean deleteAdmins(String id);

    boolean updateAdmins(Admin admin);


    Admin getAdminsInfo(String id);

    int changePwd(AdminChangeBo changeBo);
}
